<?php

use Dcat\Admin\Admin;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/dashboard', 'HomeController@index');
    // 外籍讲者
    $router->resource('speaker/list', 'SpeakerController');
    // 外籍讲者合集
    $router->resource('speakerCollection/list', 'ForeignSpeakerCollectionController');
    $router->resource('user/list', 'UserController'); //用户列表
    $router->resource('user/wechat', 'WxloginMemberController'); //用户列表

    // 留言管理
    $router->resource('/message', 'MessageController');
    // 广告管理
    $router->resource('/ads', 'AdController');
    // 邀约申请
    $router->resource('invitation', 'InvitationApplyController');
});
